package com.kh.pajx.sop.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kh.pajx.sop.base.BaseServiceImpl;
import com.kh.pajx.sop.dao.IStockDevDao;
import com.kh.pajx.sop.domain.PageBean;
import com.kh.pajx.sop.domain.stock.StockDev;
import com.kh.pajx.sop.domain.stock.StockDevInDetail;
import com.kh.pajx.sop.domain.stock.StockDevOutDetail;
import com.kh.pajx.sop.service.IStockDevService;
import com.kh.pajx.sop.util.page.QueryHelper;
@Service
@Transactional
public class StockDevServiceImpl extends BaseServiceImpl<StockDev> implements IStockDevService{
	@Resource
	private IStockDevDao devDao;
	public void save(StockDev dev){
		devDao.save(dev);
	}
	@Override
	public List<StockDev> getByName(String devName) {
		// TODO Auto-generated method stub
		return devDao.getByName(devName);
	}
	
	@Override
	public List<StockDev> getByDev(StockDevInDetail detail) {
		// TODO Auto-generated method stub
		return devDao.getByDev(detail);
	}
	
	@Override
	public List<StockDev> getByDev(StockDevOutDetail detail) {
		// TODO Auto-generated method stub
		return devDao.getByDev(detail);
	}
	
	public void update(StockDev stockDev){
		devDao.update(stockDev);
	}
	public List<StockDev> findAll(){
		return devDao.findAll();
	}
	public PageBean getPageBean(int pageNum, int pageSize,
			QueryHelper queryHelper) {
		return devDao.getPageBean(pageNum, pageSize, queryHelper);
	}
	public StockDev getById(String uuid){
		return devDao.getById(uuid);
	}
}
